import request from "../utils/request";

// 登录
export const apiLogin = (data) => {
    return request({
        url: '/api/user/login',
        method: "post",
        data
    })
}

// 获取邮箱验证码
export const apiGetEmailRuleCode = (data) => {
    return request({
        url: '/api/user/getEmailRuleCode',
        method: 'post',
        data
    })
}

// 邮箱登录接口
export const apiEmailLogin = (data) => {
    return request({
        url: '/api/user/emailLogin',
        method: 'post',
        data
    })
}

// banner接口
export const apiGetBannerList = () => {
    return request({
        url: '/api/user/getBannerList'
    })
}

export const apiAliPay = (data) => {
    return request({
        url: '/api/user/pay',
        method: 'post',
        data
    })
}